.camera-component-container {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
}

#cameraVideo {
  width: 375px;
  height: 605px;
}

.mask {
  position: fixed;
  //left: 0;
  //top: 0;
  //bottom: 0;
  //right: 0;
  width: 375px;
  height: 605px;

  &.mask-id-card-front {
    background-image: url("../../assets/img/components/CameraComponent/id-card-front@2x.png");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
  }

  &.mask-id-card-back {
    background-image: url("../../assets/img/components/CameraComponent/id-card-back@2x.png");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
  }
}

.tool-btn-box {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0 50px 30px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;


  & > .btn {
    border: none;
    outline: none;
    box-shadow: unset;
    background-color: unset;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;

    &.photo-album-btn {
      background-image: url("../../assets/img/components/CameraComponent/photo-album@2x.png");
    }

    &.take-photo-btn {
      background-image: url("../../assets/img/components/CameraComponent/take-photo-btn@2x.png");
      width: 80px;
      height: 80px;
    }

    &.back-btn {
      background-image: url("../../assets/img/components/CameraComponent/back-icon.png");
    }

    &.save-photo-btn {
      background-image: url("../../assets/img/components/CameraComponent/save-icon.png");
    }

    &:hover {
      transform: scale(1.1);
    }
  }

  &.canvas-tool {
    padding: 0 60px 60px 60px;

    & > .btn {
      &.back-btn, &.save-photo-btn {
        border-radius: 50%;
        background-color: rgba(255,255,255,0.8);
        width: 60px;
        height: 60px;
        background-size: 30px;
        box-shadow: 0 0 10px #333333;
      }

      &.save-photo-btn {
      }
    }
  }
}

.canvas-container {
  position: fixed;
  width: 375px;
  height: 605px;
  z-index: 10;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 56px;
  box-sizing: border-box;
}

.scanner-bar {
  position: absolute;
  top: 48px;
  right: 56px;
  width: 53px;
  height: 397px;
  background-image: url("../../assets/img/components/CameraComponent/scanner-bar@2x.png");
  background-size: 100%;
  background-position: center;
  animation: scan 2s;
  -moz-animation: scan 2s; /* Firefox */
  -webkit-animation: scan 2s; /* Safari 和 Chrome */
  -o-animation: scan 2s; /* Opera */
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite; /* Safari 和 Chrome */
  animation-direction:alternate;
  -webkit-animation-direction:alternate; /* Safari 和 Chrome */
}


@keyframes scan {
  from {
    transform: translateX(0)
  }
  to {
    transform: translateX(-188px)
  }
}
